package shc.graduation.http.query;

import org.litepal.crud.DataSupport;

import shc.graduation.bean.MyCollection;

/**
 * Created by shuhuiChen on  2016/5/23  19:18.
 * Email ：shuhuiCSH@126.com
 */

public class MyCollectionQuery extends BaseQuery<MyCollection> {
    @Override
    public void query() {

        mListModel = DataSupport.offset(mStateEvent.index * limit)
                .limit(limit)
                .order("id desc")
                .find(MyCollection.class, true);

        mStateEvent.model = mListModel;

        callBackSuccess(mStateEvent, "查询成功");
    }
}
